<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<form id="pagerForm" method="post" action="<%=basePath %>appoint/findAll_List.action" >
	<input type="hidden" name="pageNum" value="${pager.pageNum}" />
	<input type="hidden" name="numPerPage" value="${pager.numPerPage}" />
	<input type="hidden" name="orderField" value="${pager.orderField}" />
	<input type="hidden" name="orderDirection" value="${pager.orderDirection}" />
</form>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" class="pageForm required-validate" 
		action="<%=basePath %>appoint/simpleFind_List" method="post">
	<div class="searchBar">
		<ul class="searchContent">
			<li>
				<label>预约编号：</label>
				<input name="app.appointId" class="required" type="text" size="25"  />
			</li>
			
		</ul>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
				<li><a class="button" href="<%=basePath%>appointment/seniorQuery.jsp" target="dialog" mask="true" title="查询框"><span>高级检索</span></a></li>
			</ul>
		</div>
	</div>
	</form>
</div>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="<%=basePath%>appointment/appointmentAdd.jsp" target="navTab"><span>添加</span></a></li>
			<li><a class="delete" href="<%=basePath%>appoint/del_List.action?app.appointId={sid_user}" target="ajaxTodo" title="确定要删除吗？" warn="请选择一个用户"><span>删除</span></a></li>
			<li><a class="edit" href="<%=basePath%>appoint/getDetail_Alter.action?app.appointId={sid_user}" target="navTab" warn="请选择一个用户"><span>修改</span></a></li>
			<li class="line">line</li>
			<li><a class="icon" href="#" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
			<li><a class="icon" href="javascript:$.printBox('w_list_print')"><span>打印</span></a></li>
		</ul>
	</div>

	<div id="w_list_print">
	<table class="list" width="98%" targetType="navTab" asc="asc" desc="desc" layoutH="116">
		<thead>
			<tr>
				<th width="100" align="center" orderField="appointId" class="asc">就诊编号</th>
				<th width="100" align="center" orderField="cinfo.customerId" class="asc">患者编号</th>
				<th width="100" align="center" orderField="cinfo.cname" class="desc">患者姓名</th>
				<th width="150" align="center" >预约日期</th>
				<th width="100" align="center" >预约医师</th>
				<th width="100" align="center" >预约类型</th>
				<th width="100" align="center" >有效期</th>
			</tr>
		</thead>
		<tbody>
			<s:iterator id="appoint" value="appList">
				<tr target="sid_user" rel="<s:property value="#appoint.appointId"/>">
					<td align="center"><s:property value="#appoint.appointId"/></td>
					<td align="center"><s:property value="#appoint.cinfo.customerId"/></td>
					<td align="center"><s:property value="#appoint.cinfo.cname"/></td>
					<td align="center"><s:property value="#appoint.appointDate"/></td>
					<td align="center"><s:property value="#appoint.appointDoctor"/></td>
					<td align="center"><s:property value="#appoint.appointType"/></td>
					<td align="center"><s:property value="#appoint.validDate"/></td>
				</tr>
			</s:iterator>
			
		</tbody>
	</table>
	</div>
	
	<div class="panelBar" >
		<div class="pages">
			<span>显示</span>
			<select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="10">10</option>
				<option value="30">30</option>
				<option value="50">50</option>
				<option value="100">100</option>
			</select>
			<span>条，共<s:property value="appList.size()"/>条</span>
		</div>
		
		<div class="pagination" targetType="navTab" 
			totalCount=<s:property value="appList.size()"/> 
			numPerPage="${pager.numPerPage }" 
			pageNumShown="<s:property value="appList.size()/pager.numPerPage"/>" 
			currentPage="${pager.currentPage }">
		</div>

	</div>
</div>
